<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>环球甄选</title>
  <link rel="stylesheet" href="./static/css/common.css">
  <link rel="stylesheet" href="./static/css/skin.css">
  <link rel="stylesheet" href="./static/swiper/swiper.min.css">
  <script src="./static/jquery/jquery-1.11.3.min.js"></script>
  <script src="./static/swiper/swiper.min.js"></script>
</head>

<body>
  <div id="wrapper">
    <div class="category-search">
      <div class="inner">
        <div class="search">
          <img src="./static/icon/25.png" class="icon" alt="">
          <input type="text" placeholder="商品搜索" name="keyword" class="input">
        </div>
      </div>
    </div>

    <div class="category-content">
      <div class="category-nav">
        <dl class="list">
          <dd class="item" id="cateNav0">
            <div class="cell">
              <span>旅游</span>
            </div>
          </dd>
          <dd class="item is-active" id="cateNav1">
            <div class="cell">
              <span>美食</span>
            </div>
          </dd>
          <dd class="item" id="cateNav2">
            <div class="cell">
              <span>甄选专区</span>
            </div>
          </dd>
          <dd class="item" id="cateNav3">
            <div class="cell">
              <span>甄选套餐</span>
            </div>
          </dd>
          <dd class="item" id="cateNav4">
            <div class="cell">
              <span>工具套餐</span>
            </div>
          </dd>
          <dd class="item" id="cateNav5">
            <div class="cell">
              <span>IP打造</span>
            </div>
          </dd>
          <dd class="item" id="cateNav6">
            <div class="cell">
              <span>环球购物</span>
            </div>
          </dd>
        </dl>
      </div>
      <div class="category-data">
        <dl class="list" id="cateList0">
          <dt class="thead">
            <span>旅游</span>
          </dt>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
        </dl>


        <!-- loop -->
        <dl class="list" id="cateList1">
          <dt class="thead">
            <span>美食</span>
          </dt>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
        </dl>
        <dl class="list" id="cateList2">
          <dt class="thead">
            <span>甄选专区</span>
          </dt>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
        </dl>
        <dl class="list" id="cateList3">
          <dt class="thead">
            <span>甄选套餐</span>
          </dt>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
        </dl>
        <dl class="list" id="cateList4">
          <dt class="thead">
            <span>工具套餐</span>
          </dt>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
        </dl>
        <dl class="list" id="cateList5">
          <dt class="thead">
            <span>IP打造</span>
          </dt>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
        </dl>
        <dl class="list" id="cateList6">
          <dt class="thead">
            <span>环球购物</span>
          </dt>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
          <dd class="item">
            <div class="cell">
              <div class="img">
                <img src="./static/imgs/2.jpg" alt="">
              </div>
              <div class="exp">
                <div class="name">
                  <span>标题标题标题标题标题标题标题标题标题标题标题标题</span>
                </div>
                <div class="price">
                  <span>￥999.99</span>
                </div>
              </div>
            </div>
          </dd>
        </dl>
        <!-- loop -->
      </div>
    </div>

    <!-- other -->
  </div>

  <div id="fixedBar">
    <div class="inner">
      <dl class="list">
        <dd class="item">
          <div class="img">
            <img src="./static/icon/3.png" alt="">
          </div>
          <div class="name">
            <span>首页</span>
          </div>
        </dd>
        <dd class="item">
          <div class="img">
            <img src="./static/icon/4.png" alt="">
          </div>
          <div class="name">
            <span>商城</span>
          </div>
        </dd>
        <dd class="item">
          <div class="img">
            <img src="./static/icon/5.png" alt="">
          </div>
          <div class="name">
            <span>甄聊</span>
          </div>
        </dd>
        <dd class="item">
          <div class="img">
            <img src="./static/icon/6.png" alt="">
          </div>
          <div class="name">
            <span>乐园</span>
          </div>
        </dd>
        <dd class="item">
          <div class="img">
            <img src="./static/icon/7.png" alt="">
          </div>
          <div class="name">
            <span>我的</span>
          </div>
        </dd>
      </dl>
    </div>
  </div>

  <script src="./static/js/action.js"></script>
  
  <script>
    $(function(){
      // 导航项目和内容区域的数组
      var navItems = [];
      var contentItems = [];
      
      // 初始化导航和内容项目
      for(var i = 0; i <= 6; i++) {
        navItems.push($('#cateNav' + i));
        contentItems.push($('#cateList' + i));
      }
      
      // 滚动监听函数
      function updateActiveNav() {
        var scrollTop = $(window).scrollTop();
        var activeIndex = 0;
        
        // 检查每个内容区域的位置
        for(var i = 0; i < contentItems.length; i++) {
          if(contentItems[i].length > 0) {
            var offsetTop = contentItems[i].offset().top - 100; // 100px 的偏移量
            if(scrollTop >= offsetTop) {
              activeIndex = i;
            }
          }
        }
        
        // 更新导航的active状态
        $('.category-nav .item').removeClass('is-active');
        if(navItems[activeIndex] && navItems[activeIndex].length > 0) {
          navItems[activeIndex].addClass('is-active');
        }
      }
      
      // 绑定滚动事件
      $(window).on('scroll', function() {
        updateActiveNav();
      });
      
      // 点击导航项目滚动到对应内容
      $('.category-nav .item').on('click', function() {
        var navId = $(this).attr('id');
        if(navId) {
          var index = navId.replace('cateNav', '');
          var targetContent = $('#cateList' + index);
          
          if(targetContent.length > 0) {
            // 移除所有active状态
            $('.category-nav .item').removeClass('is-active');
            // 添加当前点击项的active状态
            $(this).addClass('is-active');
            
            // 滚动到目标位置
            $('html, body').animate({
              scrollTop: targetContent.offset().top - 80 // 80px 的偏移量，避免被固定头部遮挡
            }, 500);
          }
        }
      });
      
      // 页面加载完成后执行一次，确保初始状态正确
      setTimeout(function() {
        updateActiveNav();
      }, 100);
    });
  </script>
</body>
</html>
